<template>
    <li @click="handleClick">
        {{item}}
    </li>
</template>

<script>
export default {
    props:['item'],
    inject:["navTitle","app"],
    methods:{
        handleClick(){
            // console.log(this.item);
            console.log(this.navTitle);
            // this.$emit('change',this.item)

            this.app.navTitle = this.item
        }
    }
}
</script>